package org.lc.kcjxzj.dto;

import java.util.ArrayList;
import java.util.List;

public class ImportResultDTO {
    private int totalCount;
    private int successCount;
    private int failureCount;
    private List<String> successFiles = new ArrayList<>();
    private List<String> errors = new ArrayList<>();
    
    public int getTotalCount() {
        return totalCount;
    }
    
    public void setTotalCount(int totalCount) {
        this.totalCount = totalCount;
    }
    
    public int getSuccessCount() {
        return successCount;
    }
    
    public void setSuccessCount(int successCount) {
        this.successCount = successCount;
    }
    
    public int getFailureCount() {
        return failureCount;
    }
    
    public void setFailureCount(int failureCount) {
        this.failureCount = failureCount;
    }
    
    public List<String> getSuccessFiles() {
        return successFiles;
    }
    
    public void setSuccessFiles(List<String> successFiles) {
        this.successFiles = successFiles;
    }
    
    public List<String> getErrors() {
        return errors;
    }
    
    public void setErrors(List<String> errors) {
        this.errors = errors;
    }
    
    public void addSuccessFile(String filename) {
        this.successFiles.add(filename);
        this.successCount++;
    }
    
    public void addError(String error) {
        this.errors.add(error);
        this.failureCount++;
    }
    
    public void incrementTotal() {
        this.totalCount++;
    }
}